/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.wrap {
  padding: 15px;
}

.queue-label {
    float: left;
    padding-right: 10px;
    min-width: 80px;
}

.capacity-edit {
    padding-left: 80px;
}

.max-capacity-edit {
    padding-left: 10px;
}

.queue-heading-row .input-group h3 {
    margin-bottom: 0;
    margin-top: 3px;
}

.form-horizontal .control-label {
    padding-top: 0;
    text-align: right;
}

.form-horizontal .control-value {
    padding-top: 5px;
}

.edit-link {
    font-size: .75em;
    padding-top: 4px;
    }

.control-label {
    font-size: .9em;
    }
    
.well-queue {
    background-color: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
    margin-bottom: 20px;
    min-height: 20px;
    padding: 19px;
    padding-top: 5px;
  }

.btn {
  padding: 6px 10px;
  transition: background-color .08s linear 0s;
}

.input-error  {
  color: #a94442;
  border-color: #a94442;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.input-error:focus {
  border-color: #843534;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
}

.gray {
  color: #999;
}

.green {
  color: #5cb85c;
}

.blue {
  color: #428bca;
}

.red {
  color: #d9534f;
}

.add-queue {
  margin-bottom: 5px;
}

.rm-queue {
  cursor: pointer;
  .gray;
  transition: color .1s linear;
  &:hover {
    .red;
  } 
}

.fa-stack-bottom {
  text-align: right;
  bottom: 0;
  line-height: 1em;
  //opacity: 0.9;
  text-shadow: 0px -1px 3px #111;
}

.queue-list{
  .badge {
    color: #999;
    background-color: #fff;
    margin-left: 5px;
  }
    .progress {
      height: 3px;
      margin: 0;
    }
    .spacer {
      height: 25px;
    }
    .spacer.col-md-0 {
      height: 0;
    }
    .capacity-bar {
      display: inline-block;
      float: right;
      margin-top: 8px;
      width: 20%;
    }
  .list-group-item {
    cursor: pointer;
    transition: background-color .1s linear 0s;
  }
  .list-group-item.last {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }
  .list-group-item.first {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }
}

.path-input {
  .btn-cancel {
    border-radius: 0;
  }
}

.user-group-input.has-feedback  {
  .form-control-feedback {
    top: -2px;
    right: 15px;
    opacity: 0.4;
  }
}

.btn-group-save {
  table-layout: auto;
  .btn-group {
    width: 100%;
    .btn-save {
      border-top-left-radius: 4px !important;
      border-bottom-left-radius: 4px !important;
    }
  }
}

.form-acl {
  .users .label,.groups .label {
    border-radius: 0;
  }
  .users .label:first-child,.groups .label:first-child {
    border-top-left-radius: .25em;
    border-bottom-left-radius: .25em;
  }
  .users .label:last-child,.groups .label:last-child {
    border-top-right-radius: .25em;
    border-bottom-right-radius: .25em;
  }
  .label {
    vertical-align: text-top;
  }
}

.panel-capacity {
  .new-queue {
    .input-row {
      margin-bottom: 5px;
    } 
  }
  .progress{
    background-color: #ddd;
    .marks {
      width: 100%;
      top: 20px;
      position: absolute;
      label {
        width: 25%;
        display: block;
        text-align: center;
        position: absolute;
        margin-left: -12.5%;
        div {
          position: absolute;
          left: 50%;
          top: -5px;
          height: 20px;
          border-left: solid 1px #fff; 
          -webkit-box-shadow:0px 0px 2px 1px rgba(0, 0, 0, .15);
          box-shadow:0px 0px 2px 1px rgba(0, 0, 0, .15);
        }
      }
    }
  }
  .panel-title {
    position: relative;
    a {
      position: absolute;
      right: 0;
      color: #428bca;
    }
  }
  .panel-body.total{
    .progress {
      margin: 0;
    }
  }
  .panel-body.queues {
    border-top: 1px solid #dddddd;
//    background-color: #f5f5f5;
  }

  .queue-capacity{
    border-bottom: 1px solid #dddddd;
    padding-bottom: 8px;
    padding-top: 8px;
    &.active {
      .progress {
        -webkit-box-shadow: 0px 0px 0px #888888;
        -moz-shadow: 0px 0px 0px #888888;
        box-shadow: 0px 0px 0px #888888;
        transition: box-shadow .25s linear 0s;
      }
        .progress.in {
          -webkit-box-shadow: 3px 5px 5px #888888;
          -moz-shadow: 3px 5px 5px #888888;
          box-shadow: 3px 5px 5px #888888;
        }
    }
    .form-inline .form-group {
      display: inline-block;
      margin-bottom: 0;
      vertical-align: top;
    }
    .help-block {
      display: inline;
    }
    /*input {
      width: auto;
    }*/
  }
}

.queue-heading-row {
  h3 {
    margin:10px;
    margin-left: 0px;
  }
}
